<div class="adplugin-mgmt">
  <h1>{{i18n "admin.adplugin.house_ads.title"}}</h1>
  {{#if this.model.length}}
    <div class="content-list">
      <div class="house-ads-actions">
        <LinkTo
          @route="adminPlugins.houseAds.show"
          @model="new"
          class="btn btn-primary"
        >
          {{d-icon "plus"}}
          <span>{{i18n "admin.adplugin.house_ads.new"}}</span>
        </LinkTo>
        <LinkTo @route="adminPlugins.houseAds.index" class="btn btn-default">
          {{d-icon "gear"}}
          <span>{{i18n "admin.adplugin.house_ads.settings"}}</span>
        </LinkTo>
      </div>
      <ul class="house-ads-list">
        {{#each this.model as |ad|}}
          <li class="house-ads-list-item">
            {{#link-to route="adminPlugins.houseAds.show" model=ad.id}}
              {{ad.name}}
            {{/link-to}}
          </li>
        {{/each}}
      </ul>
    </div>
  {{/if}}
  {{outlet}}
</div>